std::realloc

From Cppreference

< cpp | memory | c
Jump to: navigation, search

Template:cpp/memory/c/sidebar

Defined in header <cstdlib>

void *malloc( size_t size );

Allocates an area of memory.

Parameters

size - number of bytes to allocate

Return value

pointer to the beginning of newly allocated memory or NULL if error has occurred. The pointer must be deallocated with free().

Notes

This function does not call constructors or initialize the memory in any way. Thus preferred method of memory allocation is new expression.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox